package kr.saeildamil.androidforstudy2.ch2930;

import kr.saeildamil.androidforstudy2.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class NewsServiceTest extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch29_newsservice);
	}

	public void mOnClick(View v) {
		Intent intent = new Intent(this, NewsService.class);
		switch (v.getId()) {
		case R.id.ch29_newsservice_startbtn:
			startService(intent);
			break;
		case R.id.ch29_newsservice_stopbtn:
			stopService(intent);
			break;
		}
	}
}
